// Package DTO
package com.cbs.management.mapper;
import java.io.Serializable;
import com.cbs.management.model.*;
import com.cbs.management.dto.*;
public class PositionMapper  implements Serializable {
    public Position dtoToPersistence(PositionDTO dto){
        if(dto == null){
           return null;
        }
        Position ret = new Position();
        ret.setId(dto.getId());
        ret.setName(dto.getName());
        return ret;
    }
    public PositionDTO persistentToDto(Position model){
        if(model == null){
           return null;
        }
        PositionDTO ret = new PositionDTO();
        ret.setId(model.getId());
        ret.setName(model.getName());
        return ret;
    }
    public PositionMapper (){}
    
}    